Current Location: Home> Function Categories> mt_getrandmax

mt_getrandmax

Display the maximum possible value of a random number
Name:mt_getrandmax
Category:math
Programming Language:php
One-line Description:Displays the maximum possible value of the random number.

Definition and usage

mt_getrandmax() displays the maximum possible value of the random number.

Example

 <?php
echo mt_getrandmax ( ) ;
?>

Try it yourself

grammar

 mt_getrandmax ( )

illustrate

Returns the largest random number that can be returned by calling mt_rand() .

Similar Functions
  • Round floating point numbers round

    round

    Roundfloatingpointnu
  • Generate better random numbers mt_rand

    mt_rand

    Generatebetterrandom
  • Cosine cos

    cos

    Cosine
  • Convert hexadecimal to decimal hexdec

    hexdec

    Converthexadecimalto
  • Ancient sine asin

    asin

    Ancientsine
  • Antihyperbolic cosine acosh

    acosh

    Antihyperboliccosine
  • Convert angle to radians deg2rad

    deg2rad

    Convertangletoradian
  • Find the minimum value min

    min

    Findtheminimumvalue
Popular Articles